import { createAction, props } from '@ngrx/store';
import { Book } from '../models/book.model';

export const addBook = createAction('[Book] Add Book', props<{ book: Book }>());
export const deleteBook = createAction('[Book] Delete Book', props<{ id: number }>());
export const loadBooks = createAction('[Book] Load Books');
// export const loadBooksSuccess = createAction('[Book] Load Books Success', props<{ books: Book[] }>());
export const loadBooksSuccess = createAction('[Book] Load Books Success', props<{ books: any }>());
